home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Programming / Programming Languages / Harvest C / MPW Int & Lib / Interfaces / Timer.h < prev    next >
Text File  |  1991-04-17  |  1KB  |  61 lines

  1. /************************************************************
  2.  
  3. Created: Sunday, January 6, 1991 at 10:13 PM
  4.     Timer.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.         Copyright Apple Computer, Inc.    1985-1990
  9.         All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __TIMER__
  15. #define __TIMER__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21. #ifndef __OSUTILS__
  22. #include <OSUtils.h>
  23. #endif
  24.  
  25.  
  26. typedef pascal void (*TimerProcPtr)(void);
  27.  
  28. struct TMTask {
  29.     QElemPtr qLink;
  30.     short qType;
  31.     TimerProcPtr tmAddr;
  32.     long tmCount;
  33.     long tmWakeUp;
  34.     long tmReserved;
  35. };
  36.  
  37. typedef struct TMTask TMTask;
  38. typedef TMTask *TMTaskPtr;
  39.  
  40.  
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44. #pragma parameter InsTime(__A0)
  45. pascal void InsTime(QElemPtr tmTaskPtr)
  46.     = 0xA058; 
  47. #pragma parameter InsXTime(__A0)
  48. pascal void InsXTime(QElemPtr tmTaskPtr)
  49.     = 0xA458; 
  50. #pragma parameter PrimeTime(__A0,__D0)
  51. pascal void PrimeTime(QElemPtr tmTaskPtr,long count)
  52.     = 0xA05A; 
  53. #pragma parameter RmvTime(__A0)
  54. pascal void RmvTime(QElemPtr tmTaskPtr)
  55.     = 0xA059; 
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59.  
  60. #endif
  61.